
import service from "@/utils/service";
import type {IOper} from "@/myTypes"

// 获取操作人员列表
export const getOPeratorListApi = () => service.get("admin/admin/list");

// 添加操作人员：
export const addOperatorApi = (data: IOper) => service.post("admin/admin/add", data);

// 删除操作人员

export const deleteOperatorApi = (adminid: string) => service.post("admin/admin/delete/",{adminid:adminid});


// 获取操作人员详情
export const getOperDetailApi = (adminname:string)=>service.get("/admin/admin/detail",{params:{adminname}});

// 修改操作人员信息

export const editOperatorApi = (data: IOper) => service.post("admin/admin/update", data);


// 登录
export const loginApi = (data: IOper) => service.post("admin/admin/login", data);